Skip to content

refactor: add LeaderSchedule trait#4973

Merged
jstarry merged 4 commits into
anza-xyz:masterfrom
jstarry:refactor/leader-schedule-trait
Mar 4, 2025
Merged

refactor: add LeaderSchedule trait#4973
jstarry merged 4 commits into
anza-xyz:masterfrom
jstarry:refactor/leader-schedule-trait

Conversation

@jstarry
Copy link
Copy Markdown

@jstarry jstarry commented Feb 13, 2025

Problem

Need to add another type of leader schedule introduced by SIMD-0180

Summary of Changes

  • New leader schedule trait named LeaderScheduleVariant
  • Use LeaderSchedule as type alias for Box<dyn LeaderScheduleVariant>
  • Rename some things to make the new trait easier to reason about

Fixes #

Copy link
Copy Markdown

@t-nelson t-nelson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3x red lines. winner in my book!

can we give the "current" leader schedule a more descriptive name, "identity_mapped" or similar?

@jstarry jstarry force-pushed the refactor/leader-schedule-trait branch from 0d79307 to 6f4c835 Compare March 4, 2025 16:06
@jstarry
Copy link
Copy Markdown
Author

jstarry commented Mar 4, 2025

3x red lines. winner in my book!

Ha don't get too excited. This is just the refactor, still have to implement the new vote keyed schedule in a follow up. This approach is going to add more code than the other way.

Copy link
Copy Markdown

@t-nelson t-nelson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3x red lines. winner in my book!

Ha don't get too excited. This is just the refactor, still have to implement the new vote keyed schedule in a follow up. This approach is going to add more code than the other way.

lol. those will be green lines tho and we'll get to delete the old version eventually!

@jstarry jstarry merged commit bf1809c into anza-xyz:master Mar 4, 2025
@jstarry jstarry deleted the refactor/leader-schedule-trait branch March 4, 2025 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants